home *** CD-ROM | disk | FTP | other *** search
/ Scene 96 / Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso / misc / coding / e_os300b / wc_extrn / test.c < prev   
Encoding:
C/C++ Source or Header  |  1996-11-26  |  770 b   |  22 lines

  1. //╔══════════════════════════════════════════════════════════════════════════╗
  2. //║                                                                          ║
  3. //║ This example show how to use WEOS, WEOSLITE, WDEBUGUG and DOS4GW         ║
  4. //║                                                                          ║
  5. //║                                                                          ║
  6. //║                                                                          ║
  7. //╚══════════════════════════════════════════════════════════════════════════╝
  8.  
  9. #include <process.h>
  10.  
  11. void wait_();
  12. #pragma aux wait_ modify [eax]=  \
  13.    "xor ah,ah"\
  14.    "int 16h";
  15.  
  16. void main()
  17. {
  18.   init_EOS();
  19.   printf("    ■ Hello world...\x0D\x0A");
  20.   wait_();
  21.   exit(0);
  22. }